

// Vuex 拆分
export const obj = {
  namespaced: true,  // 命名
  state:()=>{
    return {
      message:'周末好好写VueDemo',
      counter:888,

    }
  },
  actions:{

  },
  mutations:{
    changeMessage(state,payload){
      state.message = payload;
    },
    changeCounter(state,payload){
      state.counter+=payload
    }
  },
  getters:{

  },

}
